<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::ml Namespace Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d8/df1/namespacecv_1_1ml.html">ml</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">cv::ml Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dce/classcv_1_1ml_1_1ANN__MLP.html">ANN_MLP</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Artificial Neural Networks - Multi-Layer Perceptrons.  <a href="../../d0/dce/classcv_1_1ml_1_1ANN__MLP.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d7a/classcv_1_1ml_1_1Boost.html">Boost</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Boosted tree classifier derived from <a class="el" href="../../d8/d89/classcv_1_1ml_1_1DTrees.html" title="The class represents a single decision tree or a collection of decision trees. ">DTrees</a>.  <a href="../../d6/d7a/classcv_1_1ml_1_1Boost.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d89/classcv_1_1ml_1_1DTrees.html">DTrees</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The class represents a single decision tree or a collection of decision trees.  <a href="../../d8/d89/classcv_1_1ml_1_1DTrees.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/dfb/classcv_1_1ml_1_1EM.html">EM</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The class implements the Expectation Maximization algorithm.  <a href="../../d1/dfb/classcv_1_1ml_1_1EM.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/de1/classcv_1_1ml_1_1KNearest.html">KNearest</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The class implements K-Nearest Neighbors model.  <a href="../../dd/de1/classcv_1_1ml_1_1KNearest.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/df9/classcv_1_1ml_1_1LogisticRegression.html">LogisticRegression</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implements Logistic Regression classifier.  <a href="../../d6/df9/classcv_1_1ml_1_1LogisticRegression.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d8e/classcv_1_1ml_1_1NormalBayesClassifier.html">NormalBayesClassifier</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bayes classifier for normally distributed data.  <a href="../../d4/d8e/classcv_1_1ml_1_1NormalBayesClassifier.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html">ParamGrid</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure represents the logarithmic grid range of statmodel parameters.  <a href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/classcv_1_1ml_1_1RTrees.html">RTrees</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The class implements the random forest predictor.  <a href="../../d0/d65/classcv_1_1ml_1_1RTrees.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db4/structcv_1_1ml_1_1SimulatedAnnealingSolverSystem.html">SimulatedAnnealingSolverSystem</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This class declares example interface for system state used in simulated annealing optimization algorithm.  <a href="../../dc/db4/structcv_1_1ml_1_1SimulatedAnnealingSolverSystem.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d7d/classcv_1_1ml_1_1StatModel.html">StatModel</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Base class for statistical models in OpenCV ML.  <a href="../../db/d7d/classcv_1_1ml_1_1StatModel.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d2d/classcv_1_1ml_1_1SVM.html">SVM</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Support Vector Machines.  <a href="../../d1/d2d/classcv_1_1ml_1_1SVM.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d54/classcv_1_1ml_1_1SVMSGD.html">SVMSGD</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stochastic Gradient Descent <a class="el" href="../../d1/d2d/classcv_1_1ml_1_1SVM.html" title="Support Vector Machines. ">SVM</a> classifier.  <a href="../../de/d54/classcv_1_1ml_1_1SVMSGD.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d32/classcv_1_1ml_1_1TrainData.html">TrainData</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Class encapsulating training data.  <a href="../../dc/d32/classcv_1_1ml_1_1TrainData.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga41d135383c258bd312a54a7964a6e7c3"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="../../d0/dce/classcv_1_1ml_1_1ANN__MLP.html">ANN_MLP</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#ga41d135383c258bd312a54a7964a6e7c3">ANN_MLP_ANNEAL</a></td></tr>
<tr class="separator:ga41d135383c258bd312a54a7964a6e7c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gae5b308134f67997a42e5ca48c2713bcb"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#gae5b308134f67997a42e5ca48c2713bcb">ErrorTypes</a> { <br />
&#160;&#160;<a class="el" href="../../dd/ded/group__ml.html#ggae5b308134f67997a42e5ca48c2713bcbad0e961149b375d9c9e00d79ac4e4f029">TEST_ERROR</a> = 0, 
<br />
&#160;&#160;<a class="el" href="../../dd/ded/group__ml.html#ggae5b308134f67997a42e5ca48c2713bcbadbd34852ad37a296e9ecff30b252ec69">TRAIN_ERROR</a> = 1
<br />
 }<tr class="memdesc:gae5b308134f67997a42e5ca48c2713bcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Error types  <a href="../../dd/ded/group__ml.html#gae5b308134f67997a42e5ca48c2713bcb">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gae5b308134f67997a42e5ca48c2713bcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9c57a2b823008dda53d2c7f7059a8710"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#ga9c57a2b823008dda53d2c7f7059a8710">SampleTypes</a> { <br />
&#160;&#160;<a class="el" href="../../dd/ded/group__ml.html#gga9c57a2b823008dda53d2c7f7059a8710ab8565ac2eb79152a4e3c80b0e9c9fd4c">ROW_SAMPLE</a> = 0, 
<br />
&#160;&#160;<a class="el" href="../../dd/ded/group__ml.html#gga9c57a2b823008dda53d2c7f7059a8710a5c76025220c9a8f5dbd2e0e49783b214">COL_SAMPLE</a> = 1
<br />
 }<tr class="memdesc:ga9c57a2b823008dda53d2c7f7059a8710"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sample types.  <a href="../../dd/ded/group__ml.html#ga9c57a2b823008dda53d2c7f7059a8710">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga9c57a2b823008dda53d2c7f7059a8710"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafd82a0e568907b8680027cb246a6eb06"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#gafd82a0e568907b8680027cb246a6eb06">VariableTypes</a> { <br />
&#160;&#160;<a class="el" href="../../dd/ded/group__ml.html#ggafd82a0e568907b8680027cb246a6eb06ae94fb869759383fce5f02a63b4666a3f">VAR_NUMERICAL</a> =0, 
<br />
&#160;&#160;<a class="el" href="../../dd/ded/group__ml.html#ggafd82a0e568907b8680027cb246a6eb06a077b19eb913ac28b0a7ca765943cd188">VAR_ORDERED</a> =0, 
<br />
&#160;&#160;<a class="el" href="../../dd/ded/group__ml.html#ggafd82a0e568907b8680027cb246a6eb06aa27f7cc3f72af77e1c2b39f5d91db078">VAR_CATEGORICAL</a> =1
<br />
 }<tr class="memdesc:gafd82a0e568907b8680027cb246a6eb06"><td class="mdescLeft">&#160;</td><td class="mdescRight">Variable types.  <a href="../../dd/ded/group__ml.html#gafd82a0e568907b8680027cb246a6eb06">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gafd82a0e568907b8680027cb246a6eb06"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga28249d75f6dc48d8eae29731395f2027"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#ga28249d75f6dc48d8eae29731395f2027">createConcentricSpheresTestSet</a> (int nsamples, int nfeatures, int nclasses, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> samples, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> responses)</td></tr>
<tr class="memdesc:ga28249d75f6dc48d8eae29731395f2027"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates test set.  <a href="../../dd/ded/group__ml.html#ga28249d75f6dc48d8eae29731395f2027">More...</a><br /></td></tr>
<tr class="separator:ga28249d75f6dc48d8eae29731395f2027"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf444266b05eeb29f24fc4fe6b6972c8d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#gaf444266b05eeb29f24fc4fe6b6972c8d">randMVNormal</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> cov, int nsamples, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> samples)</td></tr>
<tr class="memdesc:gaf444266b05eeb29f24fc4fe6b6972c8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates <em>sample</em> from multivariate normal distribution.  <a href="../../dd/ded/group__ml.html#gaf444266b05eeb29f24fc4fe6b6972c8d">More...</a><br /></td></tr>
<tr class="separator:gaf444266b05eeb29f24fc4fe6b6972c8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2b136c7508a37057e01ef2473694714f"><td class="memTemplParams" colspan="2">template&lt;class SimulatedAnnealingSolverSystem &gt; </td></tr>
<tr class="memitem:ga2b136c7508a37057e01ef2473694714f"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#ga2b136c7508a37057e01ef2473694714f">simulatedAnnealingSolver</a> (<a class="el" href="../../dc/db4/structcv_1_1ml_1_1SimulatedAnnealingSolverSystem.html">SimulatedAnnealingSolverSystem</a> &amp;solverSystem, double initialTemperature, double finalTemperature, double coolingRatio, size_t iterationsPerStep, double *lastTemperature=NULL, <a class="el" href="../../d1/dd6/classcv_1_1RNG.html">cv::RNG</a> &amp;rngEnergy=<a class="el" href="../../d2/de8/group__core__array.html#ga75843061d150ad6564b5447e38e57722">cv::theRNG</a>())</td></tr>
<tr class="memdesc:ga2b136c7508a37057e01ef2473694714f"><td class="mdescLeft">&#160;</td><td class="mdescRight">The class implements simulated annealing for optimization.  <a href="../../dd/ded/group__ml.html#ga2b136c7508a37057e01ef2473694714f">More...</a><br /></td></tr>
<tr class="separator:ga2b136c7508a37057e01ef2473694714f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:48 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
